//
//  HZRewardDetailViewController.m
//  Stock_Stategy
//
//  Created by zeroing on 17/6/5.
//  Copyright © 2017年 MayerF. All rights reserved.
//

#import "HZRewardDetailViewController.h"
#import "HZRewardDetailView.h"

@interface HZRewardDetailViewController ()
@property (nonatomic, strong)HZRewardDetailView *pRewardDetailView;
@property (nonatomic, strong)HZStategyListModel *pListModel;
@end

@implementation HZRewardDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"策略执行结果";
    
    _pRewardDetailView = [HZRewardDetailView new];
    [self.view addSubview:_pRewardDetailView];
    [self initConstraints];
    
    _pListModel = self.params[@"model"];
}
- (void)initConstraints
{
    [_pRewardDetailView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.view);
    }];
}
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [_pRewardDetailView updateNewData:_pListModel];
}

- (void)dealloc {
    DLog(@"HZStategyDetailViewController销毁");
}
@end
